package com.xiumu.securitydemo.controller;

import com.xiumu.securitydemo.model.bean.ResultJSON;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author xiumu
 * @Date 2020/5/18 17:57
 */
@RestController
public class UserController {

    @GetMapping("/hello")
    public ResultJSON hello(){
        return new ResultJSON(2000,"hello blog!");
    }

    @GetMapping("/vip")
    public ResultJSON vip(){
        return new ResultJSON(2000,"hello 超级管理员!");
    }

}
